function fib(n: Integer): Integer {
  if (n <= 0) then 0 else
  if (n == 1) then 1 else
  fib(n - 1) + fib(n - 2)
}

println("fib(6) = {fib(6)}"); 
